var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0
var tempY = 0
var mouseOver =true;


function getMouseXY(e) {
  if (IE) { 
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  
    tempX = e.pageX
    tempY = e.pageY
  }  
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  return true
}

function showHelp(helpTitle,helpMsg)
{
	var x= tempX;
	var y = tempY;
	var path=document.helpForm.imagePath.value;
	var image = "help-button-close.jpg";
	var objDiv =document.getElementById('help');
	
	if(!mouseOver) return;
	objDiv.style.visibility="visible";
			
	objDiv.innerHTML = 
			"<img border='0' align='right' src='" + path + "/" + image + 
			"' onClick='document.getElementById(\"help\").style.visibility=\"hidden\"; mouseOver=true;' />"
			+ "<font class='bold-helptext'>"
			+ helpTitle + "</font><br>" 
			+ "<font class='small-helptext'>"
			+ helpMsg
			+ "</font>"; 
	
	if (!IE) {
            objDiv.style.left = x+10 + 'px';
            objDiv.style.top =  y+10 + 'px';
	     mouseOver = false;
            return false;
        }
        else 
        {
		objDiv.style.left = x+10 + 'px';
            objDiv.style.top =  y+10 + 'px';
			mouseOver = false;
            //objDiv.pixelLeft = x + 20 + 'px';// + document.body.scrollLeft;
            //objDiv.pixelTop = y + 10 + 'px';//+ document.body.scrollTop;
            return false;
        }	
}